const router = require('koa-router')(),//可以用require直接调用，也可以实例化调用Router = require('koa-router')    router = new Router()
      users = require('../models/users.js'),
      log = console.log;

router.prefix('/api/users');

router.post('/login',async(ctx,next) => {
  
  let { email,password } = ctx.request.body;

  let res = await users.login(email,password);
  ctx.body = res;
});



module.exports = router;
